const express = require('express');
const router = express.Router();
const {
  getTarotCards,
  drawTarotCards,
  interpretTarotCards,
  saveTarotReading,
  favoriteTarotReading,
  getUserTarotReadings,
  getSavedTarotReadings,
  getDailyRecommendedSpread
} = require('../controllers/divination.controller');

// 获取所有塔罗牌
router.get('/', getTarotCards);

// 抽取塔罗牌
router.post('/draw', drawTarotCards);

// 解读塔罗牌
router.post('/interpret', interpretTarotCards);

// 保存塔罗牌占卜记录
router.post('/save', saveTarotReading);

// 收藏塔罗牌占卜记录
router.post('/favorite', favoriteTarotReading);

// 获取用户的塔罗牌占卜记录
router.get('/records/:userId', getUserTarotReadings);

// 获取用户收藏的塔罗牌占卜记录
router.get('/saved/:userId', getSavedTarotReadings);

// 获取今日推荐牌阵
router.get('/daily-recommendation/:userId', getDailyRecommendedSpread);

module.exports = router;